package com.xrkj.b2c.service.impl.bus;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xrkj.b2c.dao.bus.BusShopLabelRelMapper;
import com.xrkj.b2c.model.bus.BusShopLabelRel;
import com.xrkj.b2c.service.bus.BusShopLabelRelService;

/**
 * 
 * <B>系统名称：</B><BR>
 * <B>模块名称：</B><BR>
 * <B>中文类名：</B>商品标签关联服务类<BR>
 * <B>概要说明：</B><BR>
 * 
 * @author 赵子靖
 * @since 2018年07月15日
 */
@Service
public class BusShopLabelRelServiceImpl implements BusShopLabelRelService {
    @Autowired
    private BusShopLabelRelMapper shopLabelRelDao;

    @Override
    public int deleteShopLabelRel(String id) {
        return shopLabelRelDao.deleteByPrimaryKey(id);
    }

    @Override
    public int insertShopLabelRel(BusShopLabelRel shopLabelRel) {
        return shopLabelRelDao.insertSelective(shopLabelRel);
    }

    @Override
    public int updateShopLabelRel(BusShopLabelRel shopLabelRel) {
        return shopLabelRelDao.updateByPrimaryKeySelective(shopLabelRel);
    }

    @Override
    public BusShopLabelRel selectByPrimaryKey(String id) {
        return shopLabelRelDao.selectByPrimaryKey(id);
    }

    @Override
    public Integer findShopLabelRelTotal(Map<String, Object> paramter) {
        return shopLabelRelDao.findShopLabelRelTotal(paramter);
    }

    @Override
    public List<BusShopLabelRel> findShopLabelRelList(Map<String, Object> paramter) {
        return shopLabelRelDao.findShopLabelRelList(paramter);
    }

    @Override
    public int deleteByShopId(String shopId) {
        return shopLabelRelDao.deleteByShopId(shopId);
    }

}
